<?php
include_once($_SERVER['DOCUMENT_ROOT']."/collect/reset/t.class.php");
$t=new t("127.0.0.1","root","159456","longzs");
$data=array();
$data[ip]=$_GET[ip];
$data[is_hidden]=$_GET[is_hidden];
$data[is_timeout]=$_GET[is_timeout];
$field="ip,is_hidden,is_timeout";
if($_GET[is_timeout]){
  $field="ip,is_timeout";
}
$t->rk("proxy", $field, "ip='$data[ip]'", array("insert"=>1), $data);
echo $t->getlastsql;
?>